package com.pjnkj.thunder.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author pjnkj
 * @since 2022-01-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Task对象", description="")
public class Task extends Model<Task> {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "店家")
    @TableField(exist = false)
    private Shop shop;

    @ApiModelProperty(value = "距离")
    @TableField(exist = false)
    private String distance;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "是否带图")
    private Integer ishaveimg;

    @ApiModelProperty(value = "多少字")
    private Integer littlesize;

    @ApiModelProperty(value = "不能点什么")
    private String nocan;

    @ApiModelProperty(value = "开始时间")
    private String starttime;

    @ApiModelProperty(value = "结束时间")
    private String endtime;

    @ApiModelProperty(value = "数量")
    private Integer number;

    @ApiModelProperty(value = "间隔天数")
    private Integer spanday;

    @ApiModelProperty(value = "店家id")
    private Integer shopid;

    @ApiModelProperty(value = "上下架状态1上架2下架0未发布")
    private Integer status;

    @ApiModelProperty(value = "只能点什么")
    private String can;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "lastModifiedTime", fill = FieldFill.INSERT_UPDATE)
    private Date lastModifiedTime;

    @ApiModelProperty(value = "排名等级")
    private Integer level;

    @ApiModelProperty(value = "任务发布分类1美团2饿了么0未知")
    private Integer tasktype;

    @ApiModelProperty(value = "删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "返现金额")
    private String returnmoney;

    @ApiModelProperty(value = "达标金额")
    private String money;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
